<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=gbk">

    <link rel="stylesheet" href="../../style/css/view.min.css">

    <script type="text/javascript" src="../../lib/js/jquery-v2.2.1.min.js"></script>
    <script type="text/javascript" src="../../js/viewer/readMailImgAdapt.js"></script>
</head>
<body class="total_page" style=" font-family: Microsoft YaHei, Tahoma;width:950px;">
 <script>
$mm = jQuery.noConflict();
</script>
<script type="text/javascript" src="../../lib/js/handlebars.runtime-v3.0.3.min.js"></script>

<script src="/js/viewer/viewTmpl.js"></script>

<script src="/js/common.js"></script>

<script src="../../lib/js/r.min.js" type="text/javascript"></script>

<script type="text/javascript">
const WEB_TYPE = "read-mail";

(function(){
getScript(path, function() {
G.resetContentQueue[MAILID] = new EventQueue();
G.resetHeaderQueue = new EventQueue();
G.resetAttachmentQueue[MAILID] = new EventQueue();
G.mailDataAccess[MAILID] = new MailDataAccess(gViewInfo);
G.mailDataAccess[MAILID].addData({"mailId": MAILID});
G.inlineAttachmentMap[MAILID] = new Map();
G.contacts[MAILID] = [];

var mailData = G.mailDataAccess[MAILID].getData();
var sContent = Viewer.tmpl.viewer(mailData);

var myDiv = document.createElement('div');
myDiv.innerHTML = sContent;
var childNode = myDiv.childNodes[0];
document.body.appendChild(childNode);

ImgAdapt.getInstance().init(document.getElementsByClassName('content-ifm')[0]);

getScript("../../js/viewer/viewer.js");
console.log(gViewInfo);
})
})();
</script><script type="text/javascript" src="../../mailinfo/1/12/mail.js"></script>
<!--
<script type="text/javascript">
//加载事件
window.onload=function(){
var bcd=document.body.innerHTML;//JS方式
document.getElementById("showlast2").innerText=bcd.toString();
//alert(bcd.toString());

};
</script>
<p id="showlast2">324</p>
-->
<script type="text/javascript">
function downloadfile(id)
{
var qqq=id;
//app.savefile(id);

id.innerHTML="已下载到D:/Eclipce4.51SDK/newWorkspace/IMail/res/atta/";

}
</script>
<div class="page" id="mail12">
<div class="wrap" id="wrap12">
<div class="scroll-bar" style="width: 883px;">
<div class="scroll-width" id="scrollWidth12" style="width: 874px;"></div>
</div>
<header class="m-header" id="header12">
<div class="title">
<p class="txt canCopyItem">598681919Title</p>
<span class="icon important_ico" style="visibility:hidden;" id="important12"></span>
</div>
<div class="abstract">
<p id="abstract-text12" class="abstract-text cf">
<p class="cf">
<!-- 是否有附�?-->

<!-- 发邮件的�?-->
<span class="menuTrigger mail-from contactMenu" data-id="0" title="crazy3@service.netease.com"><span class="contact-value" data-id="0">598681919Sender</span></span>

<!-- 收邮件的�?-->
<span style="float:left; margin:3px 7px 3px 7px; color:#81858a;">发至</span>
<span class="menuTrigger last contactMenu" data-id="1" title="m13557330070@163.com"><span class="contact-value" data-id="1">598681919recieve</span></span>

<!-- 被抄送的�?-->

<!-- 密送的�?-->

<!-- 还有多少�?-->
</p>
</p>
<span class="time canCopyItem">598681919Time1</span>
</div>
<div class="detail">
<p id="detail-text12" class="cf detail-text"></p>
<span class="time">598681919Time2</span>
<span id="hide-btn">隐藏</span>
</div>
</header>
<div class="scroll-area" id="scrollArea12">
<article id="content">
<div class="iframeContent">
<iframe 598681919Content onLoad="iFrameHeight()"  frameborder="no" scrolling="no" src=" class="content-ifm" id="iframepage" style="visibility: visible; width="1024px"  >

</iframe>
</div>
</article>
<div class="content-loading" id="content-loading12" style="display: none;">
<img src="../../style/img/contentload.gif">
</div>
<div class="load-err" id="load-err">
<span class="load-err-tip" id="load-err-tip"></span>
<br>
<a id="load-err-reload" class="load-err-reload-btn">重新加载</a>
</div>
</div>
</div>
<iframe frameborder="no" scrolling="no" src="redrawAgent.html" style="visibility: hidden; position: absolute; height: 0px; width: 773px;" class="agentIfm" onload="window.fn.onRedrawAgentLoaded(this)"></iframe>
附件(无)
</div><script type="text/javascript" src="../../js/viewer/viewer.js"></script>
<script >
function changeFrameHeight(){
    var ifm= document.getElementById("iframepage"); 
    ifm.height=document.documentElement.clientHeight;
}
window.onresize=function(){  
     changeFrameHeight();  
} 

function reinitIframe() {         
   var iframe = document.getElementById("urlIframe");                
 try 
{                          
                   var bHeight = iframe.contentWindow.document.body.scrollHeight;                
/*       
                   var dHeight = iframe.contentWindow.document.documentElement.scrollHeight;              
                   var height = Math.max(bHeight, dHeight);                          
                    iframe.height = height;                */                         
                   iframe.height = bHeight;                      
} 
          catch (ex) { }                 
}
</script>
<script type="text/javascript" language="javascript">   
function iFrameHeight() {   
var ifm= document.getElementById("iframepage");   
var subWeb = document.frames ? document.frames["iframepage"].document : ifm.contentDocument;   
if(ifm != null && subWeb != null) {
   ifm.height = subWeb.body.scrollHeight;
   ifm.width = subWeb.body.scrollWidth;
}   
}   
</script>

</body>
</html>